import 'package:flutter/material.dart';

import '../../../routes.dart';
import '../info/index.dart';
import 'function_button.dart';
import 'header.dart';

class IndexProfile extends StatelessWidget {
  const IndexProfile({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('我的'),
        elevation: 0,
        actions: [
          IconButton(
              onPressed: () => Navigator.of(context).pushNamed(Routes.settings),
              icon: const Icon(Icons.settings)),
        ],
      ),
      body: ListView(
        children: const [
          Header(),
          FunctionButton(),
          IndexInfo(showTitle: true),
          IndexInfo()
        ],
      ),
    );
  }
}
